import { OrgServiceApi, WorkflowServiceApi } from "./_workflow";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "/@/utils/common";
import service from "/@/utils/request";

class WorkFlowRoleServiceApi extends OrgServiceApi { }

export const ExportWorkFlowRoleServiceApi = new WorkFlowRoleServiceApi(
  "/WfRoleService"
);

class UserWorkFlowRolewServiceApi extends OrgServiceApi {
  pageQueryListNew(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/pageQueryListNew";
    url += objectToUrlParams(params, true);
    return service.get(url, { params: { ...bean } });
  }
}

export const ExportUserWorkFlowRolewServiceApi = new UserWorkFlowRolewServiceApi(
  "/UserWfRoleService"
);
